//
//  DShopInfoViewController.h
//  OrderSeat
//
//  Created by haiming on 13-10-14.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import "DShopInfoCell.h"

@class DShopInfoDataSource;
@interface DShopInfoViewController : BaseViewController

@property (weak, nonatomic) IBOutlet UIScrollView *theScrollview;
@property (strong, nonatomic) IBOutlet UIImageView *logoImage;
@property (strong, nonatomic) IBOutlet UILabel *shopNameLabel;
@property (strong, nonatomic) IBOutlet UILabel *toPriceLabel;
@property (strong, nonatomic) IBOutlet UILabel *priceLabel;

@property (strong, nonatomic) IBOutlet UIView *topView;
@property (strong, nonatomic) IBOutlet UITableView *infoTable;

@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) NSString *tel;
@property (strong, nonatomic) DShopInfoDataSource *dataSource;

- (id)initWithId:(NSString*)shopId;

- (IBAction)buttonPress:(id)sender;

@end

@interface DShopInfoDataSource : BaseDataSource<UITableViewDataSource,UITableViewDelegate>

@property (strong, nonatomic) DShopInfoViewController *viewController;
@property (strong, nonatomic) NSMutableArray *shopItemList;
@property (strong, nonatomic) NSDictionary *shopInfo;
@property (strong, nonatomic) DShopInfoCell *shopInfoCell;

- (void)fetchShopInfo;

@end